import qs from 'qs'
// axios
import request from './http/request';
// home api


export function banner() {
	return request({
		url: '/carousel/all',
		method: 'post',
		hideloading: false
	});
}

export function articleList(data) {
	return request({
		url: '/article/all',
		method: 'post',
		data,
		hideloading: false
	});
}
export function categoryList(){
	return request({
		url: '/category/all',
		method: 'post',
		hideloading: false
	});
}
export function articleById(data){
	return request({
		url: '/article/findById',
		method: 'post',
		data,
		hideloading: false
	});
}